package com.example.graduation.mapper;

import com.example.graduation.entity.Torder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.graduation.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xyc
 * @since 2022-02-11
 */
@Mapper
public interface OrderMapper extends BaseMapper<Torder> {

    /**
     * 查询用户的全部订单,这里只是查询到商家还有订单内容
     *
     * @param userId
     * @return {@link List< OrderVo>}
     * @author xieyucan
     * CreateDate 2022/3/2 16:26
     */
    List<OrderVo> selectOrderList(Integer userId);
}
